import request from '@/utils/request'

export function getGoodsQuery(data) {
  return request({
    url: '/goods/info/query',
    method: 'post',
    data,
  })
}

export function getGoodsAdd(data) {
  return request({
    url: '/goods/info/add',
    method: 'post',
    data,
  })
}

export function getGoodsDel(data) {
  return request({
    url: '/goods/info/del',
    method: 'post',
    data,
  })
}

export function getGoodsEdit(data) {
  return request({
    url: '/goods/info/edit',
    method: 'post',
    data,
  })
}

export function getEdit(data) {
  return request({
    url: '/goods/info/auditing',
    method: 'post',
    data,
  })
}

export function getGoodsToken(data) {
  return request({
    url: '/goods/info/getToken',
    method: 'post',
    data,
  })
}

export function getGoodsInputList(data){
  return request({
    url: '/warehouse/inputitem/query/input',
    method: 'post',
    data,
  })
}


export function exportTep(data){
  return request({
    url: '/goods/info/export/modelexcel',
    method: 'get',
    data,
  })
}

export function validation(data){
  return request({
    url: '/goods/info/count',
    method: 'post',
    data,
  })
}

export function getPack(data) {
  return request({
    url: '/system/dict_value/query',
    method: 'post',
    data,
  })
}

export function getEditList(data) {
  return request({
    url: '/goods/info/editquery',
    method: 'post',
    data,
  })
}